package juan.happyge.plugin.myi.utils;

import java.util.regex.Pattern;

public class VerifyUtils {

    /**
     * 校验字符串是否为大于0的正整数
     * @param string
     * @return
     */
    public static boolean isNumber(String string) {
        if (string == null || string.length() == 0){
            return false;
        }
        Pattern pattern = Pattern.compile("^[0-9]*[1-9][0-9]*$");
        return pattern.matcher(string).matches();
    }

}
